#ifndef PLAYER_COMMON_H 
#define PLAYER_COMMON_H

#define	RET_OK		        ((INT32)   0)
#define RET_EXIST			((INT32)  -1)
#define RET_INV_ARG		((INT32)  -2)
#define RET_TIMEOUT		((INT32)  -3)
#define RET_NO_RESOURCE	((INT32)  -4)
#define RET_NOT_EXIST		((INT32)  -5)
#define RET_NOT_FOUND		((INT32)  -6)
#define RET_INVALID		((INT32)  -7)
#define RET_NOT_INIT		((INT32)  -8)
#define RET_DELETED		((INT32)  -9)
#define RET_TOO_MANY		((INT32) -10)
#define RET_TOO_BIG		((INT32) -11)
#define RET_DUP_REG		((INT32) -12)
#define RET_NO_MSG			((INT32) -14)
#define RET_INV_HANDLE		((INT32) -15)
#define RET_FAIL			((INT32) -16)
#define RET_NO_SUPPORT		((INT32) -17)

#define NULL_HANDLE		((HANDLE_T) 0)
typedef unsigned char 		BYTE;
typedef	unsigned char		UCHAR;
typedef unsigned char		UINT8;
typedef unsigned short		UINT16;
typedef unsigned int   	UINT32;
typedef unsigned long long UINT64;

typedef char				CHAR;
typedef signed char 		INT8;
typedef signed short		INT16;
typedef signed int 		INT32;
typedef signed long long 	INT64;

typedef unsigned int 		size_t;
typedef size_t				SIZE_T;
typedef UINT8				BOOL;
typedef void*				HANDLE_T;
typedef int 				status_t;
typedef void				VOID;

#undef NDEBUG

#ifndef NDEBUG
	#define CHECK_ASSERT(ret)	do{int y=(int)ret; if(y != 0){assert(0);}}while(0)
	#define ASSERT(x)			do{int y=(int)x; assert(y);}while(0)
	#define VERIFY(x)			ASSERT(x)
#else
	#define CHECK_ASSERT(ret)	((void)ret)
	#define ASSERT(x)			((void)x)			
	#define VERIFY(x)			((void)x)
#endif

#endif